/*
 * @Author: 张久冬
 * @Date: 2021-12-14 16:19:24
 * @
# Description:
 */
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'normalize.css'
import './assets/css/index.less'
import App from './App.vue'
import router from './router'
import store from './store'
import * as Icons from '@element-plus/icons'
import { setupStore } from '@/store/index'
import { registerApp } from './global'
// import JDRequest from './service'

import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
registerApp(app)
app.use(ElementPlus, {
  locale: zhCn
})
Object.keys(Icons).forEach((key) => {
  app.component(key, Icons[key as keyof typeof Icons])
})
app.use(store)
setupStore()
app.use(router)
app.use(ElementPlus)
app.mount('#app')
